package com.maxatime.dao;

import com.maxatime.pojo.Dormitory;
import com.maxatime.pojo.DormitoryVo;
import com.maxatime.pojo.StudentMessage;

import java.util.List;

public interface DormitoryMapper {
    int deleteByPrimaryKey(Integer pkId);

    int insert(Dormitory record);

    int insertSelective(Dormitory record);

    Dormitory selectByPrimaryKey(Integer pkId);

    int updateByPrimaryKeySelective(Dormitory record);

    int updateByPrimaryKey(Dormitory record);
   //全查
    List<Dormitory> dormitoryFind(DormitoryVo vo);


    //删除
    Integer dormitoryDelete(int pkId);
   //多选删除
    Integer deleteListDor(List<Integer> list);
    //查看宿舍的学生
    List<StudentMessage> viewdormitorys(String dormitoryId);
    //添加修改状态
    Integer updatedoruser(String dormitoryDormitoryId);
    //查看现有人数
    Integer selectnownum(String dormitoryId);

        //删除修改状态
    Integer updatedoUser(String dormitoryId);
}